package service;

import com.fasterxml.jackson.core.JsonProcessingException;
import domian.Result;
import domian.User;
import redis.clients.jedis.Jedis;

public interface UserService {
    Result userLogin(String tel, String password);

    Result userRegister(String tel, String password, String email);

    User getUser(String tel, String password);

    /**
     * 修改redis中的用户数据
     * @param user
     * @throws JsonProcessingException
     */
    void userUpdate(User user,String redisKey) throws JsonProcessingException;

    User findUserById(Integer uid);
}
